<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: HSEM Exported Macros</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('group___h_s_e_m___exported___macros.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">HSEM Exported Macros <div class="ingroups"><a class="el" href="group___s_t_m32_h7xx___h_a_l___driver.html">STM32H7xx_HAL_Driver</a> &raquo; <a class="el" href="group___h_s_e_m.html">HSEM</a></div></div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-define-members" class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gabadef2e6fddb0bb11e9e9c6930b12ffa" id="r_gabadef2e6fddb0bb11e9e9c6930b12ffa"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gabadef2e6fddb0bb11e9e9c6930b12ffa">__HAL_HSEM_SEMID_TO_MASK</a>(__SEMID__)</td></tr>
<tr class="memdesc:gabadef2e6fddb0bb11e9e9c6930b12ffa"><td class="mdescLeft">&#160;</td><td class="mdescRight">SemID to mask helper Macro.  <br /></td></tr>
<tr class="memitem:gaa21d53e6c4d6d35e9047b5c74fb78c8f" id="r_gaa21d53e6c4d6d35e9047b5c74fb78c8f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa21d53e6c4d6d35e9047b5c74fb78c8f">__HAL_HSEM_ENABLE_IT</a>(__SEM_MASK__)</td></tr>
<tr class="memdesc:gaa21d53e6c4d6d35e9047b5c74fb78c8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the specified HSEM interrupts.  <br /></td></tr>
<tr class="memitem:ga36496851508be9cace265482a7d18e53" id="r_ga36496851508be9cace265482a7d18e53"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga36496851508be9cace265482a7d18e53">__HAL_HSEM_DISABLE_IT</a>(__SEM_MASK__)</td></tr>
<tr class="memdesc:ga36496851508be9cace265482a7d18e53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the specified HSEM interrupts.  <br /></td></tr>
<tr class="memitem:gacba979398283173d1ee412b5edbdd108" id="r_gacba979398283173d1ee412b5edbdd108"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gacba979398283173d1ee412b5edbdd108">__HAL_HSEM_GET_IT</a>(__SEM_MASK__)</td></tr>
<tr class="memdesc:gacba979398283173d1ee412b5edbdd108"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether interrupt has occurred or not for semaphores specified by a mask.  <br /></td></tr>
<tr class="memitem:gadb48c4b1d695a3dc4f3b72fdfc11d807" id="r_gadb48c4b1d695a3dc4f3b72fdfc11d807"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gadb48c4b1d695a3dc4f3b72fdfc11d807">__HAL_HSEM_GET_FLAG</a>(__SEM_MASK__)</td></tr>
<tr class="memdesc:gadb48c4b1d695a3dc4f3b72fdfc11d807"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the semaphores release status flags.  <br /></td></tr>
<tr class="memitem:ga0b123be50de8a360f3eb103b56cf3c39" id="r_ga0b123be50de8a360f3eb103b56cf3c39"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0b123be50de8a360f3eb103b56cf3c39">__HAL_HSEM_CLEAR_FLAG</a>(__SEM_MASK__)</td></tr>
<tr class="memdesc:ga0b123be50de8a360f3eb103b56cf3c39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the HSEM Interrupt flags.  <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<a name="doc-define-members" id="doc-define-members"></a><h2 id="header-doc-define-members" class="groupheader">Macro Definition Documentation</h2>
<a id="ga0b123be50de8a360f3eb103b56cf3c39" name="ga0b123be50de8a360f3eb103b56cf3c39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0b123be50de8a360f3eb103b56cf3c39">&#9670;&#160;</a></span>__HAL_HSEM_CLEAR_FLAG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_CLEAR_FLAG</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEM_MASK__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(HSEM-&gt;C1ICR |= (__SEM_MASK__))</div>
</div><!-- fragment -->
<p>Clears the HSEM Interrupt flags. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEM_MASK__</td><td>semaphores Mask </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga36496851508be9cace265482a7d18e53" name="ga36496851508be9cace265482a7d18e53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga36496851508be9cace265482a7d18e53">&#9670;&#160;</a></span>__HAL_HSEM_DISABLE_IT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_DISABLE_IT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEM_MASK__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(HSEM-&gt;C1IER &amp;= ~(__SEM_MASK__))</div>
</div><!-- fragment -->
<p>Disables the specified HSEM interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEM_MASK__</td><td>semaphores Mask </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa21d53e6c4d6d35e9047b5c74fb78c8f" name="gaa21d53e6c4d6d35e9047b5c74fb78c8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa21d53e6c4d6d35e9047b5c74fb78c8f">&#9670;&#160;</a></span>__HAL_HSEM_ENABLE_IT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_ENABLE_IT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEM_MASK__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(HSEM-&gt;C1IER |= (__SEM_MASK__))</div>
</div><!-- fragment -->
<p>Enables the specified HSEM interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEM_MASK__</td><td>semaphores Mask </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadb48c4b1d695a3dc4f3b72fdfc11d807" name="gadb48c4b1d695a3dc4f3b72fdfc11d807"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadb48c4b1d695a3dc4f3b72fdfc11d807">&#9670;&#160;</a></span>__HAL_HSEM_GET_FLAG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_GET_FLAG</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEM_MASK__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((__SEM_MASK__) &amp; HSEM-&gt;C1ISR)</div>
</div><!-- fragment -->
<p>Get the semaphores release status flags. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEM_MASK__</td><td>semaphores Mask </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">semaphores</td><td>Mask : Semaphores where Release flags rise. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gacba979398283173d1ee412b5edbdd108" name="gacba979398283173d1ee412b5edbdd108"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacba979398283173d1ee412b5edbdd108">&#9670;&#160;</a></span>__HAL_HSEM_GET_IT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_GET_IT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEM_MASK__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((__SEM_MASK__) &amp; HSEM-&gt;C1MISR)</div>
</div><!-- fragment -->
<p>Checks whether interrupt has occurred or not for semaphores specified by a mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEM_MASK__</td><td>semaphores Mask </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">semaphores</td><td>Mask : Semaphores where an interrupt occurred. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gabadef2e6fddb0bb11e9e9c6930b12ffa" name="gabadef2e6fddb0bb11e9e9c6930b12ffa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabadef2e6fddb0bb11e9e9c6930b12ffa">&#9670;&#160;</a></span>__HAL_HSEM_SEMID_TO_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_HSEM_SEMID_TO_MASK</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__SEMID__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(1 &lt;&lt; (__SEMID__))</div>
</div><!-- fragment -->
<p>SemID to mask helper Macro. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__SEMID__</td><td>semaphore ID from 0 to 31 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">Semaphore</td><td>Mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
